//
// Created by Administrator on 2020/7/20 0020.
//

#include "ChengJun.h"

const string &ChengJun::getWorkTime() const
{
    return workTime;
}

void ChengJun::setWorkTime(const string &workTime)
{
    ChengJun::workTime = workTime;
}

const string &ChengJun::getPlayTime() const
{
    return playTime;
}

void ChengJun::setPlayTime(const string &playTime)
{
    ChengJun::playTime = playTime;
}

const string &ChengJun::getSleepTime() const
{
    return sleepTime;
}

void ChengJun::setSleepTime(const string &sleepTime)
{
    ChengJun::sleepTime = sleepTime;
}

double ChengJun::getAngerValue() const
{
    return angerValue;
}

void ChengJun::setAngerValue(double angerValue)
{
    ChengJun::angerValue = angerValue;
}

double ChengJun::getHappinessValue() const
{
    return happinessValue;
}

void ChengJun::setHappinessValue(double happinessValue)
{
    ChengJun::happinessValue = happinessValue;
}

void ChengJun::eatLunch()
{
    happinessValue+=1;
    angerValue-=1;
}

void ChengJun::eatDinner()
{
    happinessValue+=1;
    angerValue-=1;
}

void ChengJun::beatChild()
{
    happinessValue-=10;
    angerValue+=10;
}

void ChengJun::scoldChild()
{
    happinessValue-=1;
    angerValue+=5;
}
